package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.backend.domain.dto.req.information.ArticleBackendSaveReq;
import com.sikaryofficial.backend.domain.dto.req.information.ArticleReq;
import com.sikaryofficial.backend.domain.dto.resp.information.ArticleExtDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author : qinjinyuan
 * @desc : 文章映射接口
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface ArticleExtMapping {
    ArticleExtMapping INSTANCE = Mappers.getMapper(ArticleExtMapping.class);
    ArticleExtDTO coverToEntity(ArticleReq articleReq);

    ArticleExtDTO coverBackendToEntity(ArticleBackendSaveReq articleReq);
}
